package com.ssy.lingxi.product.repository.material;

import com.ssy.lingxi.product.entity.GoodsSupplyList;
import com.ssy.lingxi.product.entity.material.MaterialAttribute;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 物料货源清单-Repository
 * @author lqa
 * @version 2.0.0
 * @date 22/03/28
 */
@Repository
public interface GoodsSupplyListRepository extends JpaRepository<GoodsSupplyList,Long>, JpaSpecificationExecutor<GoodsSupplyList> {

    List<GoodsSupplyList> findByGoodsId(Long goodsId);

    List<GoodsSupplyList> findByGoodsIdInAndMemberIdAndMemberRoleId(List<Long> goodsIds, Long memberId, Long memberRoleId);
}
